import http from './request.js'

const AUTH_TOKEN = "X-Auth-Token";
 
http.setBaseUrl("网址");
if (uni.getStorageSync('token')) {
    http.header.Authorization = uni.getStorageSync('token').token;
}
http.beforeResponseFilter = function (res) {
    //X-Auth-Token
    if (res.header) {
		   http.header.Authorization = uni.getStorageSync('token');
    }
    return res;
}
let my = {
    'http': http
}
export default my



